Fix bio splitting in the crypto fallback code#41
Fix bio splitting in the crypto fallback code#41blktests-ci[bot] wants to merge 3 commits intolinus-master_basefrom
Conversation
|
Upstream branch: bc9ff19 |
b6b569e to
ef2c9cd
Compare
|
Upstream branch: 40f92e7 |
9da078e to
b3c4e7b
Compare
ef2c9cd to
198825c
Compare
|
Upstream branch: 40f92e7 |
b3c4e7b to
f04b344
Compare
198825c to
341e7ed
Compare
341e7ed to
81f31a4
Compare
|
Upstream branch: 89be9a8 |
f04b344 to
6d01cc5
Compare
81f31a4 to
87bbbbc
Compare
|
Upstream branch: 25fae0b |
Prepare for calling blk_crypto_max_io_size() from the bio splitting code. No functionality has been changed. Signed-off-by: Bart Van Assche <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
Modify splitting of encrypted bios as follows: - Stop calling blk_crypto_bio_prep() for bio-based block drivers that do not call bio_split_to_limits(). - For request-based block drivers and for bio-based block drivers that call bio_split_to_limits(), call blk_crypto_bio_prep() after bio splitting happened instead of before bio splitting happened. - In bio_split_rw(), restrict the bio size to the smaller size of what is supported by the block driver and the crypto fallback code. The advantages of these changes are as follows: - This patch fixes write errors on zoned storage caused by out-of-order submission of bios. This out-of-order submission happens if both the crypto fallback code and bio_split_to_limits() split a bio. - Less code duplication. The crypto fallback code now calls bio_split_to_limits() instead of open-coding it. Signed-off-by: Bart Van Assche <[email protected]>
6d01cc5 to
7d81806
Compare
6637119 to
f092a9b
Compare
|
Upstream branch: 260f6f4 |
|
Upstream branch: 260f6f4 |
|
Github failed to update this PR after force push. Close it. |
Pull request for series with
subject: Fix bio splitting in the crypto fallback code
version: 2
url: https://patchwork.kernel.org/project/linux-block/list/?series=981614